package cn.vcjf.weapp.api.goods.mapper;

import cn.vcjf.weapp.api.goods.entity.GoodsGroup;
import com.baomidou.mybatisplus.mapper.BaseMapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zhengzihang
 * @since 2018-09-25
 */
public interface GoodsGroupMapper extends BaseMapper<GoodsGroup> {
	/**
	 * 查询库存
	 * @param id
	 * @return
	 */
	GoodsGroup selectRepertoryForUpdate(Integer id);

	/**
	 * 增加库存
	 * @param goodsGroup
	 * @return
	 */
	int addGoodsGroupRepertory(GoodsGroup goodsGroup);

	/**
	 * 减少库存
	 *
	 * @param goodsGroup
	 * @return
	 */
	int reduceGoodsGroupRepertory(GoodsGroup goodsGroup);

}
